import request from '@/utils/request'
export default {
  getById(id) {
    return request({
      url: `/user/sys-user/get/${id}`,
      method: 'get'
    })
  },
  updatepwd(sysUser) {
    return request({
      url: '/user/sys-user/updatepwd',
      method: 'post',
      data: sysUser
    })
  },
  save(sysUser) {
    return request({
      url: '/user/sys-user/register',
      method: 'post',
      data: sysUser
    })
  },
  send(email) {
    return request({
      url: `/api/mail/send/${email}`,
      method: 'get'
    })
  }
}
